﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Account_Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Вход
    </h2>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                ValidationGroup="LoginUserValidationGroup" />
            <%--<div class="accountInfo">--%>
            <fieldset class="login">
                <%--<legend>Account Information</legend>--%>
                <p>
                   <b><asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Имя пользователя:</asp:Label></b>
                    <asp:TextBox ID="UserName" Width="365px" runat="server" CssClass="textEntry"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                        CssClass="failureNotification" ErrorMessage="Введите имя пользователя" ToolTip="User Name is required."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                  
                </p>
                <p>
                  <asp:RegularExpressionValidator runat="server" ID="UserNameRequired2" ControlToValidate="UserName" Display="Dynamic"
                                          Text="Введите имя пользователя с ограничением от 2 до 20 символов, которыми могут быть латинские буквы и цифры, первый символ обязательно буква!" ForeColor="Red" ValidationExpression="^[a-zA-Z][a-zA-Z0-9-_\.]{1,20}$"
                        ValidationGroup="LoginUserValidationGroup" />
                </p>
                <p>
                    <b><asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Пароль:</asp:Label></b>
                    <asp:TextBox ID="Password" Width="365px" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>

                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                        CssClass="failureNotification" ErrorMessage="Введите пароль" ToolTip="Password is required."
                        ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                </p>
               <%--   <p>
                  <asp:RegularExpressionValidator runat="server" ID="PasswordRequired2" ControlToValidate="Password" Display="Dynamic"
                                          Text="Пароль должен состоять из строчных и прописных латинских букв, цифр! " ForeColor="Red" ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$"
                        ValidationGroup="LoginUserValidationGroup" />
                </p>--%>
                <p>
                    <asp:CheckBox ID="RememberMe" runat="server" />
                    <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Сохранить пароль</asp:Label>
                </p>
                <%--  </fieldset>--%>
                <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Войти" ValidationGroup="LoginUserValidationGroup" />
                </p>
                <%--    </div>--%>
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
